<?php
require_once('lib/db_connection.php');

$username = $_SESSION['username'];
$company_id = $_SESSION['company_id'];
$auto_id = $_GET['auto_id'];
$verify = $_GET['verify'];
$verify = sha1($verify);

$query_pass = "SELECT password FROM accounts_tbl WHERE auto_id='".$auto_id."'";
$result_pass = mysql_query($query_pass) or die("SELECT PASSWORD ".mysql_error());
$row_pass = mysql_fetch_array($result_pass);

$db_pass = $row_pass['password'];

if($verify==$db_pass)
{
	echo "1";
}
if($verify!=$db_pass)
{
	echo "0";
}
?>